package com.fifth.sso.feign;

import com.fifth.common.pojo.entity.BusinessInfo;
import com.fifth.common.pojo.entity.BusinessPermission;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @作者：刘壬杉
 * @创建时间 2022/8/29 20:59
 **/
@FeignClient(value = "mrcai-business")
public interface BusinessFeign {
    @GetMapping("/api/business/findByPhone/{telephone}")
    public BusinessInfo findByPhone(@PathVariable String telephone);

    @GetMapping("/api/business/getPermission")
    public List<BusinessPermission> getPermission();
}
